package com.i.template.constant;

import lombok.Getter;

/**
 * @author lewis
 * @since 24/07/24
 * @type enum
 * @description 对状态码的封装
 */
@Getter
public enum ResponseStatusEnum {
    OK(-1,"请求成功"),
    FAIL(-2,"请求失败"),
    TOKEN_AUTH_FAILED(-3,"token错误"),
    MAIL_SEND_FAILED(-4,"邮件发送失败");
    private final Integer code;
    private final String message;

    ResponseStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
